; Always set 'emoji--insert-buffer'
authorScott Bell <sctb@me.com>
Fri, 20 Sep 2024 21:16:52 +0000 (14:16 -0700)
committerEli Zaretskii <eliz@gnu.org>
Sat, 21 Sep 2024 11:01:41 +0000 (14:01 +0300)
* lisp/international/emoji.el (emoji-list): Always set insert buffer.
(Bug#73390)

Copyright-paperwork-exempt: yes

lisp/international/emoji.el

index cbf7c547f4cfc5d82f93a8eaba49fb71e78676f9..e8cd869a571565630af74c175cb76941cf8f5cc0 100644 (file)
@@ -164,12 +164,12 @@ when the command was invoked."
   (let ((buf (current-buffer)))
     (emoji--init)
     (switch-to-buffer (get-buffer-create "*Emoji*"))
+    (setq-local emoji--insert-buffer buf)
     ;; Don't regenerate the buffer if it already exists -- this will
     ;; leave point where it was the last time it was used.
     (when (zerop (buffer-size))
       (let ((inhibit-read-only t))
         (emoji-list-mode)
-        (setq-local emoji--insert-buffer buf)
         (emoji--list-generate nil (cons nil emoji--labels))
         (goto-char (point-min))))))